_login = $(function() {
	Mock.mock('/login', 'post', (res, req) => {
		return {
			code: "1", //1代表成功，反之0
			role: "user" //表示范围的用户类型（目前只有admin与user	
		}
	});
});

_register = $(function() {
	Mock.mock('/register', 'post', (res, req) => {
		console.log(res);
		return {
			code: "1", //1代表成功，反之0
			msg: "注册成功" //返回的错误信息
		}
	});
})
